/*
 * File: SOTE.h
 *
 * Code generated for Simulink model 'SOTE'.
 *
 * Model version                  : 3.169
 * Simulink Coder version         : 9.4 (R2020b) 29-Jul-2020
 * C/C++ source code generated on : Tue Nov 14 09:29:59 2023
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: NXP->Cortex-M4
 * Code generation objective: MISRA C:2012 guidelines
 * Validation result: Not run
 */

#ifndef RTW_HEADER_SOTE_h_
#define RTW_HEADER_SOTE_h_
#include <stddef.h>
#ifndef SOTE_COMMON_INCLUDES_
#define SOTE_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* SOTE_COMMON_INCLUDES_ */

#include "SOTE_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
#define rtmGetErrorStatus(rtm)         ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
#define rtmSetErrorStatus(rtm, val)    ((rtm)->errorStatus = (val))
#endif

/* Block states (default storage) for system '<Root>' */
typedef struct
{
    int32_T CurrArr[10];               /* '<S2>/outint1' */
    uint16_T TgtTim2;                  /* '<S2>/outint2' */
    uint16_T TgtTim3;                  /* '<S2>/outint2' */
    uint16_T cnt;                      /* '<S2>/outint2' */
    uint16_T cnt1;                     /* '<S2>/outint2' */
    uint16_T cnt2;                     /* '<S2>/outint2' */
    uint16_T cntStep2;                 /* '<S2>/outint2' */
    uint16_T cntStep3;                 /* '<S2>/outint2' */
    uint16_T CM_ChargeTime;            /* '<S2>/outint2' */
    uint16_T tmp;                      /* '<S2>/outint2' */
    uint8_T is_active_c6_SOTE;         /* '<S2>/outint2' */
    uint8_T is_c6_SOTE;                /* '<S2>/outint2' */
    uint8_T scnt;                      /* '<S2>/outint1' */
    uint8_T acnt;                      /* '<S2>/outint1' */
}
DW_SOTE_T;

/* Real-time Model Data Structure */
struct tag_RTM_SOTE_T
{
    const char_T * volatile errorStatus;
};

/* Block states (default storage) */
extern DW_SOTE_T SOTE_DW;

/* Model entry point functions */
extern void SOTE_initialize(void);

/* Exported entry point function */
extern void Task_SOTE(void);

/* Real-time Model object */
extern RT_MODEL_SOTE_T *const SOTE_M;

/* Exported data declaration */

/* Declaration for custom storage class: ExportToFile */
extern uint16_T sote_min_SChgRamainingTime;/* '<S2>/outint2' */
extern uint16_T sote_min_chgTgtTime;   /* '<S2>/outint2' */

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'SOTE'
 * '<S1>'   : 'SOTE/Interface'
 * '<S2>'   : 'SOTE/Interface/SOTE1'
 * '<S3>'   : 'SOTE/Interface/SOTE1/Compare To Constant1'
 * '<S4>'   : 'SOTE/Interface/SOTE1/Compare To Constant3'
 * '<S5>'   : 'SOTE/Interface/SOTE1/Compare To Constant5'
 * '<S6>'   : 'SOTE/Interface/SOTE1/Compare To Constant6'
 * '<S7>'   : 'SOTE/Interface/SOTE1/outint1'
 * '<S8>'   : 'SOTE/Interface/SOTE1/outint2'
 * '<S9>'   : 'SOTE/Interface/SOTE1/outint3'
 */

/*-
 * Requirements for '<Root>': SOTE
 */
#endif                                 /* RTW_HEADER_SOTE_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
